<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
  <title>Title</title>
  <!-- 新 Bootstrap 核心 CSS 文件 -->
  <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  <script>
    function calculate() {
      var price =parseFloat(${pathInfo.price}) ;
      var num = parseInt(document.getElementById('num').value);
      if (num > 0){
        total.value = parseFloat(num*price);
      }
    }
  </script>
</head>
<body>
<div class="container">
  <div class="row clearfix">
    <div class="col-md-12 column">
      <form action="${pageContext.request.contextPath}/user/pay" method="post">
        <div class="form-group">
          <h3>路线名：${pathInfo.pathname}</h3>
        </div>
        <div class="form-group">
          <label>简介：${pathInfo.intro}</label>
        </div>
        <div class="form-group">
          <label>所去城市：${pathInfo.province}省 ${pathInfo.city} 市</label>
        </div>
        <div class="form-group">
          <label>单价：${pathInfo.price} 元</label>
        </div>
        <div class="form-group">
          <label>天数： ${pathInfo.daytime}天</label>
        </div>
        <div class="form-group">
          <input type="hidden" name="oid" class="form-control" id="oid" value="${orderInfo.oid}" required>
        </div>
        <div class="form-group">
          <label >数量 : ${orderInfo.num}</label>
        </div>
        <div class="form-group">
          <label>总价: ${orderInfo.value} </label>
        </div>
        <div class="form-group">
          <label>创建日期 ：${orderInfo.createDate}</label>
        </div>
        <div class="form-group">
          <label>行程开始日期 ：${orderInfo.startDate}</label>
        </div>
        <button type="submit" class="btn btn-default">支付</button>
      </form>
    </div>

  </div>


</div>

</body>
</html>

